package com.hjrpc.babyyamall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjrpc.babyyamall.product.entity.AttrEntity;
import com.hjrpc.babyyamall.product.entity.AttrGroupEntity;
import com.hjrpc.babyyamall.product.vo.AttrGroupWithAttrsVo;
import com.hjrpc.babyyamall.product.vo.SkuItemVo;
import com.hjrpc.common.utils.PageUtils;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author hujian
 * @email 502361472@qq.com
 * @date 2021-08-07 12:54:21
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Integer catelogId);

    List<AttrGroupWithAttrsVo> listWithAttr(Long catelogId);

    List<AttrEntity> listAttr(Long attrGroupId);

    List<SkuItemVo.SpuItemAttrGroup> querySpuGroupDetail(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}

